if(redis.call("exists",KEYS[1])==1) then
    local store = tonumber(redis.call("get",KEYS[1]));
    redis.call("incrby",KEYS[1],-1);
    return tonumber(redis.call("get",KEYS[1]));
end;